package example

import (
	"time"

	"jslog/system/config"

	"github.com/patrickmn/go-cache"
)

func Cache(cacheCfg *config.Cache) *cache.Cache {
	if cacheCfg.CacheType == "file" {
		return cache.New(1*time.Hour, 3*time.Hour)
	}
	return nil
}
